package com.example.hm_dtfkz.litepal;

import org.litepal.crud.LitePalSupport;

/**
 * FileName: AnswerLitePalEntity
 * Author: admin
 * Date: 2022/1/4 10:14
 * Description:
 */
public class AnswerLitePalEntity extends LitePalSupport {

    public int answerType;          //题库分类 1-6
    public int answerPosition;      //答题的下标
    public int answerRound;         //当前题库第几轮
    public String assetsName;       //本地文件名
    public String fileName;         //本地文件名
    public String typeName;         //分类名
    public boolean isUnlock = false;//该题库是否已解锁

    public AnswerLitePalEntity(int answerType, int answerPosition, int answerRound, String assetsName, String fileName, String typeName) {
        this.answerType = answerType;
        this.answerPosition = answerPosition;
        this.answerRound = answerRound;
        this.assetsName = assetsName;
        this.fileName = fileName;
        this.typeName = typeName;
    }

    public AnswerLitePalEntity(int answerType, int answerPosition, int answerRound, String assetsName, String fileName, String typeName, boolean isUnlock) {
        this.answerType = answerType;
        this.answerPosition = answerPosition;
        this.answerRound = answerRound;
        this.assetsName = assetsName;
        this.fileName = fileName;
        this.typeName = typeName;
        this.isUnlock = isUnlock;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getAnswerType() {
        return answerType;
    }

    public void setAnswerType(int answerType) {
        this.answerType = answerType;
    }

    public int getAnswerPosition() {
        return answerPosition;
    }

    public void setAnswerPosition(int answerPosition) {
        this.answerPosition = answerPosition;
    }

    public int getAnswerRound() {
        return answerRound;
    }

    public void setAnswerRound(int answerRound) {
        this.answerRound = answerRound;
    }

    public boolean isUnlock() {
        return isUnlock;
    }

    public void setUnlock(boolean unlock) {
        isUnlock = unlock;
    }

    @Override
    public String toString() {
        return "AnswerLitePalEntity{" +
                "answerType=" + answerType +
                ", answerPosition=" + answerPosition +
                ", answerRound=" + answerRound +
                ", assetsName='" + assetsName + '\'' +
                ", fileName='" + fileName + '\'' +
                ", typeName='" + typeName + '\'' +
                ", isUnlock=" + isUnlock +
                '}';
    }
}
